<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增POST_TMDATA_TMINTERF')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-POST_TMDATA_TMINTERF-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">客户端：</label>
                <div class="col-sm-8">
                    <input name="MANDT" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">外围系统单号：</label>
                <div class="col-sm-8">
                    <input name="ZDOCNO" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">行项次号：</label>
                <div class="col-sm-8">
                    <input name="POSNR" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">SAP单据号码：</label>
                <div class="col-sm-8">
                    <input name="ZSAPDOCNO" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">单据类型(条码系统接口)：</label>
                <div class="col-sm-8">
                    <input name="ZDOCTP" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">业务类型(条码系统接口)：</label>
                <div class="col-sm-8">
                    <input name="ZBUSTP" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">凭证中的过帐日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="BUDAT" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">物料号：</label>
                <div class="col-sm-8">
                    <input name="MATNR" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">以输入单位计的数量：</label>
                <div class="col-sm-8">
                    <input name="ERFMG" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">条目单位：</label>
                <div class="col-sm-8">
                    <input name="ERFME" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">工厂：</label>
                <div class="col-sm-8">
                    <input name="WERKS" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">接收仓：</label>
                <div class="col-sm-8">
                    <input name="zlocI" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">发出仓：</label>
                <div class="col-sm-8">
                    <input name="zlocO" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">成本中心：</label>
                <div class="col-sm-8">
                    <input name="KOSTL" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">销售订单号-接收：</label>
                <div class="col-sm-8">
                    <input name="zvbelnI" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">销售订单行-接收：</label>
                <div class="col-sm-8">
                    <input name="zposnrI" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">销售订单号-发货：</label>
                <div class="col-sm-8">
                    <input name="zvbelnO" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">销售订单行-发货：</label>
                <div class="col-sm-8">
                    <input name="zposnrO" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">操作员：</label>
                <div class="col-sm-8">
                    <input name="ZOPRTER" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">订舱号码：</label>
                <div class="col-sm-8">
                    <input name="ZSPNO1" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">货柜号Container No.：</label>
                <div class="col-sm-8">
                    <input name="ZSHIP2" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">封条号Seal No.：</label>
                <div class="col-sm-8">
                    <input name="ZSHIP3" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">传入日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="ZIBDAT" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">传入时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="ZIBTIM" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">传入者：</label>
                <div class="col-sm-8">
                    <input name="ZIBUSR" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">过帐状态：</label>
                <div class="col-sm-8">
                    <input name="ZPSTFLG" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注说明：</label>
                <div class="col-sm-8">
                    <input name="MSGTX" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">过帐者：</label>
                <div class="col-sm-8">
                    <input name="ZPSTER" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">过帐执行日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="ZPSTDT" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">过帐执行时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="ZPSTTM" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">批号：</label>
                <div class="col-sm-8">
                    <input name="BATCH" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('POST_TMDATA_TMINTERF')}">
                        <input type="radio" th:id="${'status_' + dict.dictCode}" name="status" th:value="${dict.dictValue}" th:checked="${dict.default}">
                        <label th:for="${'status_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "sap/POST_TMDATA_TMINTERF"
        $("#form-POST_TMDATA_TMINTERF-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-POST_TMDATA_TMINTERF-add').serialize());
            }
        }

        $("input[name='BUDAT']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='ZIBDAT']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='ZIBTIM']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='ZPSTDT']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='ZPSTTM']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>